package com.hiof.servercommunication.background.job.managers;

import com.hiof.settings.user.TypeOfAttendant;

/**
 * Created by IntelliJ IDEA.
 * User: manish
 * Date: 4/1/12
 * Time: 12:35 PM
 * To change this template use File | Settings | File Templates.
 */
public class BackgroundManagerFactory {

    public static AbstractBackgroundThreadManager getBackgroundManager(TypeOfAttendant attendantType) {
        AbstractBackgroundThreadManager backgroundThreadManager;
        if (attendantType == TypeOfAttendant.ATHLETE) {
            backgroundThreadManager = AthleteBackgroundThreadManager.getInstance();
        } else {
            backgroundThreadManager = SupportBackgroundThreadManager.getInstance();
        }
        return backgroundThreadManager;
    }
}
